﻿@model IEnumerable<ClassLibrary1.Clothes>
@{
    ViewBag.Title = "Clothes";
}

<link href="../../Css/StyleSheet1.css" rel="stylesheet" type="text/css" />
<h2>
    Clothes</h2>
@using (Html.BeginForm())
{ 
    <p>
        Find by ProductCode: @Html.TextBox("SearchString") &nbsp;
        <input type="submit" value="Search" /></p> 
}
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            img
        </th>
        <th>
            @Html.ActionLink("ProductCode", "Clothes", new { sortOrder = "ProductCode" })
            @*ProductCode*@
        </th>
        <th>
            Materail
        </th>
        <th>
            Color
        </th>
        <th>
            Size
        </th>
        <th>
            Sex
        </th>
        <th>
            Tech
        </th>
        <th>
            Style
        </th>
        <th>
            Spec
        </th>
        <th>
            ForOrder
        </th>
        <th>
            Storage
        </th>
        <th>
            @Html.ActionLink("XPrice", "Clothes", new { sortOrder = "XPrice" })
            @* XPrice*@
        </th>
        <th>
            BarCode
        </th>
        <th>
            PurchaseNum
        </th>
        <th>
            PurchaseTime
        </th>
        <th>
            StatusID
        </th>
        <th>
            IsOff
        </th>
        <th>
            IsShow
        </th>
        <th>
            OnlineTime
        </th>
        <th>
            sprice
        </th>
        <th>
            ClothesName
        </th>
        <th>
            CategoryCode
        </th>
        <th>
            SinglePackageWeight
        </th>
        <th>
            SinglePackageLength
        </th>
        <th>
            SinglePackageWidth
        </th>
        <th>
            SinglePackageHeight
        </th>
        <th>
            EncasementWeight
        </th>
        <th>
            EncasementAmount
        </th>
        <th>
            EncasementLength
        </th>
        <th>
            EncasementWidth
        </th>
        <th>
            EncasementHeight
        </th>
        <th>
            TemperatureBottom
        </th>
        <th>
            TemperatureTop
        </th>
        <th>
            HumidityBottom
        </th>
        <th>
            HumidityTop
        </th>
        <th>
            PackageComments
        </th>
        <th>
            redundancy1
        </th>
        <th>
            redundancy2
        </th>
        <th>
            redundancy3
        </th>
        <th>
            redundancy4
        </th>
        <th>
            redundancy5
        </th>
        <th>
            redundancy6
        </th>
        <th>
            Recorder
        </th>
        <th>
            RecordTime
        </th>
        <th>
            productserialcode
        </th>
        <th>
            LatestIsOnTime
        </th>
        <th>
            LatestIsOffTime
        </th>
        <th>
            WarehouseType
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.ClothesCode }) |
                @Html.ActionLink("Details", "Details", new { id = item.ClothesCode }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.ClothesCode })
            </td>
            <td>
                <span class="choose"><img src=@ClassLibrary1.common.getPhoto(item.ProductCode) /></span>
            </td>
            <td>
                @item.ProductCode
            </td>
            <td>
                @item.Materail
            </td>
            <td>
                @item.Color
            </td>
            <td>
                @item.Size
            </td>
            <td>
                @item.Sex
            </td>
            <td>
                @item.Tech
            </td>
            <td>
                @item.Style
            </td>
            <td>
                @item.Spec
            </td>
            <td>
                @item.ForOrder
            </td>
            <td>
                @item.Storage
            </td>
            <td>
                @String.Format("{0:F}", item.XPrice)
            </td>
            <td>
                @item.BarCode
            </td>
            <td>
                @item.PurchaseNum
            </td>
            <td>
                @String.Format("{0:g}", item.PurchaseTime)
            </td>
            <td>
                @item.StatusID
            </td>
            <td>
                @item.IsOff
            </td>
            <td>
                @item.IsShow
            </td>
            <td>
                @String.Format("{0:g}", item.OnlineTime)
            </td>
            <td>
                @String.Format("{0:F}", item.sprice)
            </td>
            <td>
                @item.ClothesName
            </td>
            <td>
                @item.CategoryCode
            </td>
            <td>
                @String.Format("{0:F}", item.SinglePackageWeight)
            </td>
            <td>
                @String.Format("{0:F}", item.SinglePackageLength)
            </td>
            <td>
                @String.Format("{0:F}", item.SinglePackageWidth)
            </td>
            <td>
                @String.Format("{0:F}", item.SinglePackageHeight)
            </td>
            <td>
                @String.Format("{0:F}", item.EncasementWeight)
            </td>
            <td>
                @item.EncasementAmount
            </td>
            <td>
                @String.Format("{0:F}", item.EncasementLength)
            </td>
            <td>
                @String.Format("{0:F}", item.EncasementWidth)
            </td>
            <td>
                @String.Format("{0:F}", item.EncasementHeight)
            </td>
            <td>
                @String.Format("{0:F}", item.TemperatureBottom)
            </td>
            <td>
                @String.Format("{0:F}", item.TemperatureTop)
            </td>
            <td>
                @String.Format("{0:F}", item.HumidityBottom)
            </td>
            <td>
                @String.Format("{0:F}", item.HumidityTop)
            </td>
            <td>
                @item.PackageComments
            </td>
            <td>
                @item.redundancy1
            </td>
            <td>
                @item.redundancy2
            </td>
            <td>
                @String.Format("{0:F}", item.redundancy3)
            </td>
            <td>
                @String.Format("{0:F}", item.redundancy4)
            </td>
            <td>
                @item.redundancy5
            </td>
            <td>
                @item.redundancy6
            </td>
            <td>
                @item.Recorder
            </td>
            <td>
                @String.Format("{0:g}", item.RecordTime)
            </td>
            <td>
                @item.productserialcode
            </td>
            <td>
                @String.Format("{0}", item.LatestIsOnTime)
            </td>
            <td>
                @String.Format("{0}", item.LatestIsOffTime)
            </td>
            <td>
                @item.WarehouseType
            </td>
        </tr>
    }
</table>
